package com.aaa.docter.Fegin;

import com.aaa.entity.CheckItem;
import com.aaa.entity.Dept;
import com.aaa.entity.User;
import com.aaa.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

@FeignClient(value = "his-open-system")
public interface UserFeign {
//    医生排班
    @PostMapping("/system/user/queryUserNeedScheduling")
    public List<User> queryUserNeedScheduling(@RequestBody Map<String,Object> map);


//    医生名称
    @GetMapping("/system/user/initUser")
    public  List<User> initUser();


//    我的排版

    @GetMapping("/system/user/queryUserByPhone/{phone}")
    public User queryUserByPhone(@PathVariable Long phone);

//    保存病例
    @GetMapping("/system/dept/getDept/{id}")
    public Dept getDeptById(@PathVariable Long id);

//    处方列表




}
